package com.mxpio.boot.starter.redis;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.mxpio.framework.common.CommonConstant;
import com.mxpio.framework.common.vo.ModuleVO;
import com.mxpio.framework.redis.RedisCacheConfiguration;

import lombok.extern.slf4j.Slf4j;

/**
 * 自动装载 缓存模块Redis实现 mxpio-redis
 */
@Configuration
@ConditionalOnClass(RedisCacheConfiguration.class)
//@AutoConfigureBefore(SecurityAutoConfiguration.class)
@Import(RedisCacheConfiguration.class)
@Slf4j
public class RedisCacheAutoConfiguration {

	public RedisCacheAutoConfiguration() {
		log.info("[AutoConfiguration==>]:RedisCache Module Loading");
		CommonConstant.addModule(new ModuleVO("RedisCache","Redis缓存模块"));
	}

}
